import { createRouter, createWebHashHistory } from 'vue-router'


import Home from '../components/Home.vue';
import About from '../components/About.vue';
import News from '../components/News.vue';
import NotFound from '../components/NotFound.vue'
const routes = [
    { path: '/', component: Home },
    { path: '/about', component: About },
    { path: '/news/:id', component: News },
    { path: '/:path(.*)', component: NotFound }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router
